/**********************************************
/ file : ofdm.sc
/ Author : Jungmin Park
/ Date : 4/19/2011 
/ Specification Model of OFDM 
***********************************************/

import "constellation_mapping";
import "ifft";

behavior ofdm (in long input1, in long input2, out float out_re, out float out_im,
               in event start, out event done, out event c, in event d)
{
  float v1, v2;
  event a, b;
  
  Constellation_mapping U00(input1, input2, v1, v2, 
                            done, a, start, b);
  ifft U01(v1, v2, out_re, out_im, 
            a, b, c, d);
                          
  void main(void) 
  {
		par {
			U00.main();
			U01.main();
		}
	}
};                                                              